package com.aliyun.heiyu.powermaster.server.service;

import com.aliyun.heiyu.powermaster.proto.*;
import com.aliyun.heiyu.powermaster.server.dao.entity.WarningEntity;
import com.aliyun.heiyu.powermaster.server.obj.po.VerifyEdgePO;

import java.util.List;


public interface WarningService {
    void insert(String equipmentNumber,String type,String content,String deviceType,Integer alarm_level);

    List<WarningData> findAll(String state);

    void update(UpdateWarningRequest request);

    WarningEntity findOne(Integer id);

    int findWarningCount();

    GetAlarmLevelReply getAlarmLevel(GetAlarmLevelRequest request);

    UpdateAlarmLevelReply updateAlarmLevel(UpdateAlarmLevelRequest request);

    PowerMonitoringReply powerMonitoring();

    /**监控设备空调温度上限下限，和服务器功耗上限*/
    boolean verifyEdge(VerifyEdgePO po);

    /**
     * 查询该类型修复的是否存在
     * @param type
     * @return
     */
    boolean existWarn(String sn,String type);
}
